AppleScript

MacPing accepts three AppleScript commands, allowing you to invoke MacPing from other programs running on your Macintosh.

The following explanations briefly describe the AppleScript command and the definition, as shown in the MacPing AppleScript dictionary.

TestZone: Test an AppleTalk zone
        TestZone  string  -- zone name

MacPing will test all networks contained in the specified zone. This command is equivalent to the Test Zone menu command.

Example:
tell MacPing to testzone “Research and Development”

TestIP: Test a single IP address or a range of addresses
        TestIP  string  -- an IP address or host name
                    [to  string]  -- end of range
                    [include  named/active/all]  -- search option 

MacPing will test an IP host or range of hosts. This command is equivalent to the Test IP menu command.

Examples:
tell MacPing to testIP “foo1.bar.com”
tell MacPing to testIP “foo1.bar.com” to “foo2.bar.com”
tell MacPing to testIP “foo1.bar.com” to “foo2.bar.com” include named

TestNet: Test AppleTalk network
        TestNet  integer  -- network number
                    [to  integer]  -- high end of range

MacPing will test an AppleTalk network or range of networks. This command is equivalent to the Test Network menu command. The network numbers are passed as AppleScript integers; they must be typed as decimal numbers.

Examples:
tell MacPing to testnet 5
tell MacPing to testnet 100 to 107